import sys
sys.path.append("/Users/ender/Code_repo/rosalind-brush-questions")
from utils import read_fasta


fasta = read_fasta("./rosalind_sseq.txt")
seq1, seq2 = list(fasta.values())

idx = []
tmp_seq = seq1
base_idx = 0
for nt in seq2:
    tmp_idx = tmp_seq.find(nt)
    idx.append(tmp_idx + base_idx + 1)
    print(nt, tmp_idx, base_idx, tmp_seq)

    tmp_seq = tmp_seq[tmp_idx + 2:]
    base_idx += tmp_idx + 2

print(seq1, seq2)
print(" ".join([str(i) for i in idx]))